# 接口对象层，封装：
class TpShopReigster(object):
    # 获取验证码，类方法
    @classmethod
    def get_verify(cls, session):
        url_verify = "http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&type=user_reg&r=0.19333579479986707"
        session.get(url=url_verify)

    @classmethod
    def register(cls, session, data):
        url_register = "http://hmshop-test.itheima.net/Home/user/reg.html"
        resp = session.post(url=url_register, data=data)
        return resp


if __name__ == '__main__':
    pass
